package adv6;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStreamReader;

public class Read3 {

	public static void main(String[] args) {
		try {
			// 解决乱码问题
			// BufferedReader br = new BufferedReader(new FileReader(
			// "E:\\作业\\java56\\11-17-作业.txt"));
			BufferedReader br = new BufferedReader(new InputStreamReader(
					new FileInputStream("E:\\作业\\java56\\11-17-作业.txt"), "gbk"));
			String str = null;
			while ((str = br.readLine()) != null)
				System.out.println(str);

			br.close();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

	}

}
